<{include file="header.htm"}>
<script type=text/javascript>
	var allnotblank='<{$lang.allisnotblank}>';
	var passlength='<{$lang.passisnotlowfour}>';
	var passistooleng='<{$lang.passisnotlongtenw}>';
	var passnotsame='<{$lang.passisnotsame}>';
	var emailerror='<{$lang.emailiserror}>';
	var randcodeerror='<{$lang.codeiserror}>';
	var randcodeisemp='<{$lang.codeisempty}>';
	var rcodeiserror='<{$lang.randcodeerror}>';
	var enterusername='<{$lang.usernameisblank}>';
	var unameisfour='<{$lang.usernameislowfour}>';
	var unameisen='<{$lang.usernameisen}>';
	var usernameprotect='<{$lang.usernameisprotect}>';
	var have_blank='<{$lang.have_blank}>';
</script>
<script src="<{$config.weburl}>/script/register.js" type=text/javascript></script>
<script type="text/javascript">
var scatid='';
var tcatid='';
function getHTML(v,ob)
{	
	var url = '<{$config.weburl}>/ajax_back_end.php';
	var sj = new Date();
	var pars = 'shuiji=' + sj+'&cattype=com&pcatid='+v;
	var myAjax = new Ajax.Request(
				url,
				{method: 'post', parameters: pars, onComplete: showResponse}
				);
	function showResponse(originalRequest)
	{
		var tempStr = 'var MyMe = ' + originalRequest.responseText; 
		var i=1;var j=0;
		eval(tempStr);
		for(var s in MyMe)
		{
			++j;
		}
		if(j>0)
			$(ob).style.visibility="visible";
		else
			$(ob).style.visibility="hidden";
		$(ob).options.length =j+1;
		$(ob).options[0].value = '';
		$(ob).options[0].text = '<{$lang.select_cat}>';
		$(ob).options[0].selected = true;
		//alert(j);
		for(var k in MyMe)
		{
			var cityId=MyMe[k][0];
			var ciytName=MyMe[k][1];
			if(ob=='tcatid'&&i==1)
			{
				if(tcatid!='')
	 				getHTML(tcatid,'scatid');
				else
					getHTML(cityId,'scatid');
			}
			$(ob).options[i].value = cityId;
			$(ob).options[i].text = ciytName;
			if(cityId==scatid||cityId==tcatid)
				$(ob).options[i].selected = true;
			i++;
	　	}
	 }
　}
</script>
<div class="menu_bottom L1">				
    <div class="headtop_L">
        <{$lang.you_are_here}><a href='<{$config.weburl}>/'><{$lang.indexpage}></a> &raquo; <{$lang.user_reg}></a>
    </div>
    <div class="headtop_R"></div>		
</div>
<!--主体开始 -->
<div id="mainbody1" class="topm">
<{if $config.closetype==2}>
    <div style="height:300px; padding-top:150px; color:#FF0000;border: 1px solid #A9B9D3; font-size:16px">
        <{$config.closecon}>
    </div>
<{else}>
    <{if $smarty.get.regsuc}>
    	<div style="height:300px; padding-top:150px; color:#FF0000;border: 1px solid #A9B9D3; font-size:16px">
    	<{$lang.reg_mail_msg}>
        </div>
    <{else}>
	<div class="leftbar">
	<div class="title4"><div class="title_left2 L2"><{$lang.user_reg}></div></div>
<form action="" method="post">
      <table width='100%' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000' bordercolorlight='#000000' bordercolordark='#FFFFFF' align="center" class="con reg">		
            <tr>
              <td height="30" colspan="3" align="left" bgcolor="#F6F6F6" style=" padding-left:20px;"><{$lang.node}></td>
            </tr>
			<tr align="center">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
            </tr>
		    
		    <tr bgcolor="#FFFFFF" valign="middle" height="35">
              <td width="218" align="right"><{$lang.randcode}></td>
            <td width="318" height="*" align="left"><input onFocus="show_yzm();" name="yzm" type="text" id="yzm" class="input" onChange="check_yzm()" style="width:300px;" /></td>
            <td width="573" height="*" align="left"><span id="yzm_pic"></span><span id="tishi2"></span>			  </td>
	    </tr>
		  	<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>
				
		  <{if $config.user_reg_verf}>	
			<tr bgcolor="#FFFFFF" valign="middle" height="35">
              <td width="218" align="right"><{$lang.randques}></td>
            <td width="318" height="*" align="left"><input onFocus="check_yzm();"  name="ckyzwt" type="text" id="ckyzwt" class="input" onChange="check_yzwt()" onClick="show_yzwt();" style="width:300px;" /></td>
            <td width="573" height="*" align="left"><span id="yzwt" ></span>&nbsp;&nbsp;<span id="tishi8" style="color:#FF0000"></span>			  </td>
	    </tr>
		  	<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>
		  <{/if}>
					  	
            <tr>
              <td width="218" height="35" align="right" bgcolor="#FFFFFF"><{$lang.selcountry}></td>
            <td height="*" colspan="2" align="left" bgcolor="#FFFFFF">
                  <select name="country" id="country" class="input" style="width:300px;">
				  	<{foreach item=list key=num from=$country}>
                    <option value="<{$list.id}>"><{$list.name}></option>
					<{/foreach}>
              </select>              </td>
            </tr>
			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>
            <tr>
              <td width='218' height="35" align="right" bgcolor="#FFFFFF"><{$lang.user_name}></td>
              <td height="*" colspan="2" align="left" bgcolor="#FFFFFF">
			 <input name='user'  type='text' id="user" <{if $config.user_reg_verf}> onFocus="check_yzwt();" <{/if}> class="input" style="width:300px;"/><span id="tishi"></span>			 </td>
            </tr>

			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>
			
            <tr>
              <td width='218' height='40' align="right" bgcolor="#FFFFFF"><{$lang.user_pass}></td>
              <td height='*' colspan="2" align="left" bgcolor="#FFFFFF"><input onFocus="check_user();" type='password'  name='password' id="password" class="input" style="width:300px;"/></td>
            </tr>
			
			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>
			
            <tr>
              <td width='218' height='40' align="right" bgcolor="#FFFFFF"><{$lang.pass_reenter}></td>
              <td height='*' colspan="2" align="left" bgcolor="#FFFFFF"><input type='password'  name='re_password' id="re_password" size='20' class="input" style="width:300px;"/></td>
            </tr>
			<tr align="right">
              <td height="30" colspan="3" align="left" bgcolor="#F6F6F6" style=" padding-left:20px;"><{$lang.personal}></td>
          </tr>


           <tr>
              <td width='218' height='40' align="right" bgcolor="#FFFFFF"><{$lang.true_name}></td>
              <td height='*' colspan="2" align="left" bgcolor="#FFFFFF">
			  <input type='text'  name='realname' id="realnane" size='30' class="input" style="width:200px;"/>
			  <input  type="radio" name="sex" value="1" checked="checked"/><{$lang.msr}>
             <input type="radio" name="sex" value="2" /><{$lang.mis}>
			 </td>
        </tr>
			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>

		  <tr>
              <td width='218' height='40' align="right" bgcolor="#FFFFFF"><{$lang.pos}></td>
            <td height='*' colspan="2" align="left" bgcolor="#FFFFFF"><input type='text'  name='pos' id="pos" size='30' class="input" style="width:300px;"/></td>
        </tr>
			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>




            <tr>
              <td width="218" height="60" align="right" bgcolor="#FFFFFF"><{$lang.email}></td>
              <td height="*" align="left" bgcolor="#FFFFFF">
			  <input name='email' type='text' class="input" id="email" size='20' maxlength="30" style="width:300px;"/></td>
              <td ><{$lang.email_msg}></td>
            </tr>
			<tr align="center">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
            </tr>


			<tr>
              <td width='218' height='40' align="right" bgcolor="#FFFFFF"><{$lang.tel}></td>
              <td height='40' align="left" bgcolor="#FFFFFF"><input type='text'  name='tel' id="tel" size='30' class="input" style="width:300px;"/></td>
              <td><{$lang.teldes}></td>
            </tr>
			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>

			<tr>
              <td width='218' height='30' align="right" bgcolor="#FFFFFF"><{$lang.mobile}></td>
              <td height='30' colspan="2" align="left" bgcolor="#FFFFFF"><input type='text'  name='mobile' id="mobile" size='30' class="input" style="width:300px;"/></td>
            </tr>
			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>

         <tr>
              <td width='218' height='40' align="right" bgcolor="#FFFFFF"><{$lang.fax}></td>
           <td height='40' align="left" bgcolor="#FFFFFF"><input type='text'  name='fax' id="fax" size='30' class="input" style="width:300px;"/></td>
           <td><{$lang.teldes}></td>
        </tr>
			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>

         <tr>
              <td width='218' height='40' align="right" bgcolor="#FFFFFF">QQ</td>
           <td height='40' colspan="2" align="left" bgcolor="#FFFFFF"><input type='text'  name='qq' id="qq" size='30' class="input" style="width:300px;"/></td>
        </tr>
			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>

         <tr>
              <td width='218' height='40' align="right" bgcolor="#FFFFFF">NSN</td>
           <td height='40' colspan="2" align="left" bgcolor="#FFFFFF"><input type='text'  name='msn' id="msn" size='30' class="input" style="width:300px;"/></td>
        </tr>
			<tr align="right">
              <td height="30" colspan="3" align="left" bgcolor="#F6F6F6" style=" padding-left:20px;"><{$lang.company}></td>
          </tr>

          <tr>
              <td width='218' height='40' align="right" bgcolor="#FFFFFF"><{$lang.comapny_name}></td>
            <td height='40' colspan="2" align="left" bgcolor="#FFFFFF"><input type='text'  name='comname' id="comname"  class="input" style="width:300px;"/></td>
        </tr>
			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>
          
		  			<tr>
              <td width='218' height='40' align="right" bgcolor="#FFFFFF"><{$lang.addr}></td>
              <td height='40' colspan="2" align="left" bgcolor="#FFFFFF"><input type='text'  name='addr' id="addr"  class="input" style="width:300px;"/></td>
            </tr>
			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
            </tr>
		   <tr>
              <td width='218' height='40' align="right" bgcolor="#FFFFFF"><{$lang.ctype}></td>
              <td height='40' colspan="2" align="left" bgcolor="#FFFFFF">
			    <{foreach item=list from=$ctype}><input name="ctype" type="radio" value="<{$list}>" /><{$list}><{/foreach}>
			</td>
        </tr>
			<tr align="right"><td height="1" colspan="3" bgcolor="#DDDDDD"></td></tr>
          <tr>
              <td width='218' height='40' align="right" bgcolor="#FFFFFF"><{$lang.main_cat}></td>
              <td height='40' colspan="2" align="left" bgcolor="#FFFFFF">
			  <select name="catid" id="catid" onchange="getHTML(this.value,'tcatid')">
            <option value="" selected><{$lang.select_cat}></option>
            <{foreach item=list from=$cat}>
              <option value="<{$list.catid}>">
              <{$list.cat}>
              </option>
            <{/foreach}>  
            </select>
			<select style="visibility:hidden" name="tcatid" id="tcatid" onchange="getHTML(this.value,'scatid')"></select>
			<select style="visibility:hidden"  name="scatid" id="scatid"></select></td>
        </tr>
			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
           </tr>
		  <tr align="right">
              <td><{$lang.identity}></td>
			  <td align="left">
			  <input checked="checked" name="identity" type="radio" value="1" /><{$lang.buyer}>
			  <input name="identity" type="radio" value="2" /><{$lang.seller}>
			  <input name="identity" type="radio" value="3" /><{$lang.sell_buy}>
			  </td>
          </tr> 
			<tr align="right">
              <td height="1" colspan="3" bgcolor="#DDDDDD"></td>
          </tr>

            <tr>
              <td width="218" height="35" align="right" bgcolor="#FFFFFF"><{$lang.reg_lim}></td>
              <td height="*" colspan="2" align="left" bgcolor="#FFFFFF">
                <textarea name="trtext" rows="5"  style="font-size:12px;algin:left;margin-top:5px; width:300px;"><{$config.association}></textarea>
				<br/>
                <input name="readme" id="readme" type="checkbox" value="checkbox"  onclick="$('submitreg').disabled=false;" style="margin-top:5px;"/><{$lang.reg_read}>
              </td>
            </tr>
		  	<tr>
              <td height="1" colspan="3" align="right" bgcolor="#DDDDDD"></td>
            </tr>
            <tr>
              <td width='218' bgcolor="#FFFFFF" height="30"></td>
              <td height="*" colspan="2" align="left" bgcolor="#FFFFFF">
			  <input type='submit' name='submitreg' id="submitreg" value='<{$lang.submit_title}>' class="input" style="width:150px;" onClick="return check()" disabled="disabled"/>
              <input name="forward" type="hidden" id="forward" value="<{$smarty.get.forward}>" />
			  </td>
            </tr>
	  </table>
	  </form>
	</div>
	<div class="rightbar">
			<div class="right1">
				<div class="sectitle" >
					<div class="title_left1 L2"><{$lang.lasted_user}></div>
		        </div>
				 <div class="seccon">
					<ul class="li_list">
					 	<{insert name="getUser" leng="36" field="company" filter="new" limit=15}>
				   </ul>
                   <div class="clear"></div>
			    </div>
			  	<div class="bottom5"></div>
				<div class="clear"></div>
				</div>
		</div>		
		<!--主体右侧结束 -->
<{/if}>
<{/if}>

</div>
<{include file="footer.htm"}>